<template>
  <div id="app">
    <div class="index-header">
      <div class="header-logo-div">
        <a href=" ">
          <img class="header-logo" src="../assets/banner/logo.png" />
        </a>
      </div>
      <Divider class="divider" type="vertical" />
      <div>
        <router-link to="/">首页</router-link>
        <!-- <a href="#">首页</a> -->
        <router-link to="/hotList">热门推荐</router-link>
        <a href="#">首页</a>
        <a href="#">首页</a>
        <router-link to="/vipInfo"><Icon type="ios-trophy" />VIP会员</router-link>
      </div>
      <div class="right"> 
        <p class="login-btn right-item" @click="showLogin = true">
          <Icon style="margin-right:5px;font-size:14px" type="ios-person" />登录
        </p>
        <Button
          type="primary"
          class="right-item"
          style="border:0;background-color:#eee;color:#555"
          shape="circle"
          icon="ios-search"
        ></Button>
        <Button
          type="primary"
          class="right-item"
          style="border:0;background-color:#eee;color:#555"
          shape="circle"
          icon="md-list"
          @click="showRight = true"
        ></Button>
      </div>
    </div>
    <div style="height:80px"></div>
    <Modal v-model="showLogin" width="300px" footer-hide>
      <Auth />
    </Modal>

    <Drawer width="320px" style="padding:10px" v-model="showRight">
      <div class="list-icon">
        <img src="../assets/banner/logo.png" />
      </div>
      <p class="list-title">文章展示</p>
       <IndexRightList v-for="(item ,i ) in [1,2,3,4,5,6,7,8,9]" title="我是一个小可爱小可爱小可爱" :key="i"/>
    </Drawer>
  </div>
</template>

<script>
import Auth from "./auth";
import IndexRightList from "./index-right-list";
export default {
  components: {
    Auth,
    IndexRightList,
  },
  data() {
    return {
      showLogin: false,
      showRight: false,
    };
  },
};
</script>
<style scoped>
.list-title {
  padding-bottom: 10px;
  font-size: 15px;
  margin-left: 5px;
  font-weight: bold;
  color: #34495e;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
  margin-top: 15px;
}
.list-icon {
  margin-top: 23px;
  width: 100%;
  text-align: center;
  padding: 20px;
}
.login-btn {
  background-color: #eee;
  width: 80px;
  height: 30px;
  border-radius: 4px;
  margin-right: 10px;
  text-align: center;
  line-height: 30px;
}
.divider {
  margin-top: 20px;
  width: 1px;
  height: 50px;
}
.header-logo-div {
  line-height: 114px;
}
.header-logo-div > a > img {
  max-width: 120px;
  height: auto;
}

.index-header {
  background-color: rgba(255, 255, 255, 0.6);
  display: flex;
  box-shadow: 2px 2px 5px #ddd;
  position: fixed !important;
  left: 0;
  top: 0;
  right: 0;
  z-index: 99;
  height: 80px;
  padding: 30px, 0;
  line-height: 80px;
}

.index-header > div > a {
  color: #34495e;
  text-decoration: none;
  margin: 0 30px;
  font-weight: bolder;
  font-size: 14px;
}

.right {
  height: 80px;
  position: fixed;
  font-size: 14px;
  font-weight: normal;
  top: 0;
  padding-right: 30px;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.right-item {
  margin-right: 10px;
}
</style>
